<div class="blazorise-codeblock">
<div class="html"><pre>
<span class="atSign">&#64;</span>if ( visible )
{
    <span class="htmlTagDelimiter">&lt;</span><span class="htmlElementName">Div</span><span class="htmlTagDelimiter">&gt;</span>
        Now you see me...
        <span class="htmlTagDelimiter">&lt;</span><span class="htmlElementName">CloseButton</span> <span class="htmlAttributeName">Clicked</span><span class="htmlOperator">=</span><span class="quot">&quot;</span><span class="sharpVariable"><span class="atSign">&#64;</span>OnClicked</span><span class="quot">&quot;</span> <span class="htmlTagDelimiter">/&gt;</span>
    <span class="htmlTagDelimiter">&lt;/</span><span class="htmlElementName">Div</span><span class="htmlTagDelimiter">&gt;</span>
}
</pre></div>
<div class="csharp"><pre>
<span class="atSign">&#64;</span>code {
    <span class="keyword">bool</span> visible = <span class="keyword">true</span>;

    Task OnClicked()
    {
        visible = <span class="keyword">false</span>;

        <span class="keyword">return</span> Task.CompletedTask;
    }
}
</pre></div>
</div>
